--#include "data\config\activityconfig\OpenServer\OpenServerConfig.lua" once
--#include "data\config\activityconfig\OpenServer\OpenServerFirstRechargeConfig.lua" once
--开服公用

OpenServerAwardState_No_Complete = 0  --未完成
OpenServerAwardState_Complete_No_Award = 1--已完成,未领奖
OpenServerAwardState_Complete_Had_Award = 2--已领奖


--是否在开服期间之内
function IsInOpenServerDay()
    local openday = System.getDaysSinceOpenServer()
    if openday >= 1 and openday <= OpenServerCfg.OpenServerDay then
        return true
    end
    return false
end

--是否在开服活动结束后第一天
function IsInOpenServerEndDay()
    local openday = System.getDaysSinceOpenServer()
    if openday > OpenServerCfg.OpenServerDay and openday <= OpenServerCfg.OpenServerDay + 1 then
        return true
    end
    return false
end

--是否在开服活动每天的结束
function IsInOpenServerDailyEndDay()
    local openday = System.getDaysSinceOpenServer()
    if openday > 1 and openday <= OpenServerCfg.OpenServerDay + 1 then
        return true
    end
    return false
end

--是否已经合服
function IsServerCombine()
    local combineday = System.getDaysSinceCombineServer()
    if combineday >= 1 then
        return true
    end
    return false
end

